/**
 * @作者 faner
 * @创建时间 2021/3/1 18:51
 */
package com.faner.fast.upms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.faner.fast.upms.mapper.SysUserRoleMapper;
import com.faner.fast.upms.model.SysUserRoleDO;
import com.faner.fast.upms.service.SysUserRoleService;
import org.springframework.stereotype.Service;

@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRoleDO> implements SysUserRoleService {

    /**
     * 根据用户Id删除该用户的角色关系
     * @param userId 用户ID
     * @return boolean
     */
    @Override
    public Boolean removeRoleByUserId(Integer userId) {
        return baseMapper.deleteByUserId(userId);
    }
}
